package com.logistic.server.entity.common;

import com.logistic.server.common.enums.PageEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 通用列表请求参数
 *
 * @author swen
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel
public class PageRequest {

    @ApiModelProperty(value = "页序号", name = "pageIndex", example = "1")
    @Builder.Default
    private Integer pageIndex = PageEnum.PAGE_INDEX.getValue();

    @ApiModelProperty(value = "每页条数", name = "pageSize", example = "10")
    @Builder.Default
    private Integer pageSize = PageEnum.PAGE_SIZE.getValue();
}
